#kof {
    width: 1280px;
    height: 720px;
    background-image: url('/static/images/background/0.gif');
    background-size: 200% 100%;
    background-position: top;
    position: absolute;
    /* 为了让.kof-head中的width的百分比设置正确, .kof-head的父节点kof也要设置成absolute定位*/
}


#kof>.kof-head {
    width: 100%;
    height: 80px;
    background-color: lightblue;
    position: absolute;
    /* 为了让计分条放在地图顶部 需要absolute定位*/
    top: 0;
    display: flex;
    /*让head里面的元素不换行*/
    align-items: center;
    /*让head里面的元素竖直居中*/
}

#kof .kof-head-timer {
    width: 80px;
    height: 60px;
    background-color: orange;
    line-height: 50px;
    text-align: center;
    border: solid 5px white;
    box-sizing: border-box;
    user-select: none;
    color: white;
    font-size: 30px;
    font-weight: 800;
}

#kof .kof-head-player-0 {
    width: calc(50% - 40px - 20px);
    height: 40px;
    /* background-color: lightgreen; */
    margin-left: 20px;
    border: solid white 5px;
    border-right: none;
    box-sizing: border-box;
}

#kof .kof-head-player-1 {
    width: calc(50% - 40px - 20px);
    height: 40px;
    /* background-color: lightgreen; */
    border: solid white 5px;
    border-left: none;
    box-sizing: border-box;
}

#kof .kof-head-player-0>div {
    width: 100%;
    height: 100%;
    background-color: red;
    float: right;
}

#kof .kof-head-player-0>div>div {
    width: 100%;
    height: 100%;
    background-color: lightgreen;
    float: right;
}

#kof .kof-head-player-1>div {
    width: 100%;
    height: 100%;
    background-color: red;
}

#kof .kof-head-player-1>div>div {
    width: 100%;
    height: 100%;
    background-color: lightgreen;
}